package com.dhkj.web.idf;

import com.dhkj.web.basic.Constans;
import com.dhkj.web.idf.model.DeviceLoginWraper;
import com.dhkj.web.idf.model.LoginWraper;
import com.dhkj.web.idf.model.MerchantWraper;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface IdfTagApiUrl {
    String WEBAPP = "/chelmeyAI";
    @Headers("BaseUrlName:" + Constans.DEFAULT_TIME)
    @POST(WEBAPP + "/consumptionMerchant/listMerchant")
    Observable<MerchantWraper> listMerchant();

    @Headers("Accept:application/json")
    @POST(WEBAPP + "/consumptionTerminal/deviceLogin")
    Observable<DeviceLoginWraper> deviceLogin(@Body RequestBody requestBody);

    @Headers("Content-Type: application/json;charset=UTF-8")
    @POST(WEBAPP+"/consumptionTerminal/login")
    Observable<LoginWraper> login(@Body RequestBody requestBody);
}
